package cn.stylefeng.guns.modular.hx.basic.entity;

import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 库位商品关联表
 * </p>
 * @author zhucx
 * @since 2023-09-06
 */
@Data
@TableName("hx_basic_position_goods")
public class HxBasicPositionGoods implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 仓库id
     */
    @TableField("warehouse_id")
    private Long warehouseId;

    /**
     * 库区id
     */
    @TableField("area_id")
    private Long areaId;

    /**
     * 库区
     */
    @TableField("area_name")
    private String areaName;

    /**
     * 库位id
     */
    @TableField("position_id")
    private Long positionId;

    /**
     * 库位编号
     */
    @TableField("position_number")
    private String positionNumber;

    /**
     * 拣货顺序
     */
    @TableField("position_pickingorder")
    private String positionPickingorder;

    /**
     * 商品id
     */
    @TableField("goods_id")
    private Long goodsId;

    /**
     * 商品名称
     */
    @TableField("goods_name")
    private String goodsName;

    /**
     * 商品编号
     */
    @TableField("goods_number")
    private String goodsNumber;

    /**
     * 商品码
     */
    @TableField("goods_pcode69")
    private String goodsPcode69;

    /**
     * 规格
     */
    @TableField("goods_specs")
    private String goodsSpecs;

    /**
     * 安全库存值
     */
    @TableField("anquan_num")
    private String anquanNum;

    /**
     * 配送单位
     */
    @TableField("ps_unit")
    private String psUnit;

    /**
     * 配送换算率
     */
    @TableField("ps_rate")
    private String psRate;

    /**
     * 基本单位
     */
    @TableField("jiben_unit")
    private String jibenUnit;
    /**
     * 操作人
     */
    @TableField("operator")
    private String operator;

    @Override
    public String toString() {
        return "HxBasicPositionGoods{" +
        "id=" + id +
        ", positionId=" + positionId +
        ", positionNumber=" + positionNumber +
        ", goodsName=" + goodsName +
        ", goodsNumber=" + goodsNumber +
        ", goodsPcode69=" + goodsPcode69 +
        ", goodsSpecs=" + goodsSpecs +
        ", anquanNum=" + anquanNum +
        ", psUnit=" + psUnit +
        ", psRate=" + psRate +
        ", jibenUnit=" + jibenUnit +
        "}";
    }
}
